package com.hp.action;

import java.util.List;

import com.hp.service.CommodityService;
import com.opensymphony.xwork2.ActionSupport;

public class IndexAction extends ActionSupport {
	private CommodityService commodityservice;
	private List list;
	
	
	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}

	public void setCommodityservice(CommodityService commodityservice) {
		this.commodityservice = commodityservice;
	}

	@Override
	public String execute() throws Exception {
		list=commodityservice.findAllCommodity();
		return SUCCESS;
	}
	
}
